Release 10.1A: OpenEdge Development:
Web Services


SubAppObject class factory methods

As with other Open Clients, there is no Progress 4GL involved in implementing the class factory method on a SubAppObject. However, for Web services, the operation is an object method is required by the WSA.

This is a VB.NET declaration for the SubAppObject class factory method, CreateAO_Payroll( ):

VB.NET prototype for an SubAppObject CreateAO_Payroll method
Public Sub CreateAO_Payroll( ) 

The following lines of code:

  1. Call the CreateAO_Payroll( ) method on the AppObject, webService, to create the SubAppObject, Payroll, on the WSA.
  2. Instantiate the SubAppObject on the client, enabling access to its methods.
  3. Copy the SubAppObject ID from the AppObject (webService) to the SubAppObject.
  4. Invoke the IncreaseSalary( ) method on the Payroll SubAppObject.
  5. VB.NET declaration of method to create a SubAppObject
    webService.CreateAO_Payroll( ) 
    Payroll = New OrderSvc.PayrollObj( ) 
    Payroll.PayrollIDValue = webService.PayrollIDValue 
    Payroll.IncreaseSalary(54, 4500.00) 
    

    Note: The SOAP request/response messages for creating SubAppObjects are very similar to those for creating ProcObjects. For more information, see the "Creating and using a ProcObject" section.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095